<div class="action-dialog-model-fixed-body">
    <div class="detailsBox">
        <h3>客户门店信息</h3>
        <form action="<@url value='/customer/shop/rest/add'/>" method="post" name="shopForm" class="action-ajax-form action-ajax-form-valid" >
            <div class="detaiTab">
                <input id="customerShopId" type="hidden" value="${view.customerShopId}" name="customerShopId">
                <input id="loanapplyNo" type="hidden" value="${view.loanapplyNo}" name="loanapplyNo">
                <input id="islock" type="hidden" value="${view.islock}" name="islock">
                <input id="controllerIdnum" type="hidden" value="${view.controllerIdnum}" name="controllerIdnum">
                <input id="controllerMobile" type="hidden" value="${view.controllerMobile}" name="controllerMobile">
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                    <tr>
                    	
                        <td width="15%" align="right" class="bg">
                        <#if o2oLoanapplyEntity.loanType == 'BP' ||o2oLoanapplyEntity.loanType=='BP_JX'||o2oLoanapplyEntity.loanType=='SG'||o2oLoanapplyEntity.loanType=='YC'||o2oLoanapplyEntity.loanType=='SC'>
                        	客户名称
                        	<#else>
                        	sd客户名称
                        </#if>
                        
                        :<font color="red">*</font></td>
								<td colspan="3">
								
								<input type="text" class="easyui-combogrid" name="shopnameRead"  id="shopnameRead" style="width:250px;" value="${view.shopname}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="客户名称不能为空！"></input> 
								<input type="hidden" name="shopname"  id="shopname" style="width:250px;" value='${view.shopname}' ></input> 
								<input type="hidden" name="shopno"  id="shopno" style="width:250px;" value='${view.shopno}' ></input> 
								<input type="hidden" name="shopcode"  id="shopcode" style="width:250px;" value='${view.shopcode}' ></input> 
								<input type="hidden" name="loanType"  id="loanType" style="width:250px;" value='${o2oLoanapplyEntity.loanType}' ></input> 
								(联想)
							
									<#if o2oLoanapplyEntity.loanType == 'BP' ||o2oLoanapplyEntity.loanType=='BP_JX'||o2oLoanapplyEntity.loanType=='SG'||o2oLoanapplyEntity.loanType=='YC'||o2oLoanapplyEntity.loanType=='SC'>
									
										<a href="<@url value='/customerNewRest/toShopNameAdd'/>" target="_blank" class="action-ajax-btn">新增客户门店名称</a>（品牌贷、烟草贷、商超贷、蔬果贷客户需先新增门店名称）
										<#else>
										至少输入4个字才能
									</#if>
									 <span class="action-field-error" for="shopnameRead" style="color:red;"></span>
								</td>
								</tr>
								<tr>
                        <td width="15%" align="right" class="bg">门店成立日期：<font color="red">*</font></td>
                        <td colspan="3">

                        <@date value="${view.stupdate}" id="stupdate" name="stupdate" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="门店成立日期不能为空！" />
                            <span class="action-field-error" for="stupdate" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店成立年限：<font color="red">*</font></td>
                        <td>
                            <@select dataSouceType="storeyears" dataSouceFrom="CRM"  name="storyears"  value="${view.storyears}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="门店成立年限不能为空！"/>
                            <span class="action-field-error" for="storyears" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">门店电话：<font color="red">*</font></td>
                        <td >
                            <input type="text"  id="telephone" value="${view.telephone}" size="30" name="telephone"   class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="门店电话不能为空！"  autocomplete="off"/>
                            <span class="action-field-error" for="telephone" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">办公地址：<font color="red">*</font></td>
                        <td colspan='3'><@select dataSouceType="province" name="officeprovince"  id="select_provinceId" value="${view.officeprovince}" onchange="provinceOnchange()" />
                            &nbsp;&nbsp; <@select dataSouceType="city" dataSouceFrom="${view.officeprovince}" name="officecity"  id="select_cityId"  value="${view.officecity}" onchange="cityOnchange()" />
                            &nbsp;&nbsp; <@select dataSouceType="country" dataSouceFrom="${view.officecity}" name="officecounty"  id="select_districtId" value="${view.officecounty}"/>
                            &nbsp;&nbsp; <input type="text"  id="officeaddress" value="${view.officeaddress}" size="50" name="officeaddress" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="办公地址不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="officeaddress" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店地址：<font color="red">*</font></td>
                        <td colspan='3'><@select dataSouceType="province" name="shopprovince"  id="select_shop_provinceId" value="${view.shopprovince}" onchange="shopprovinceOnchange()" />
                            &nbsp;&nbsp; <@select dataSouceType="city" dataSouceFrom="${view.shopprovince}" name="shopcity"  id="select_shop_cityId" value="${view.shopcity}" onchange="shopcityOnchange()" />
                            &nbsp;&nbsp; <@select dataSouceType="country" dataSouceFrom="${view.shopcity}" name="shopcounty"  id="select_shop_districtId" value="${view.shopcounty}"/>
                            &nbsp;&nbsp; <input type="text"  id="shopaddress" value="${view.shopaddress}" size="50" name="shopaddress" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="门店地址不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="shopaddress" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">注册地:<font color="red">*</font></td>
                        <td colspan="3">
                            <input type="text"  id="registered" value="${view.registered}" size="100" name="registered" class="action-valid-field" data-action-valid-rule="required;maxlength:100;" data-action-valid-msg-required="注册地不能为空！"  autocomplete="off"  />
                            <span class="action-field-error" for="registered" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">工商查询是否异常 ：<font color="red">*</font></td>
                        <td>
                          <@select dataSouceType="GS_QUREY_ABNERMAL" dataSouceFrom="CRM" name="gsQureyAbnermal"
                           id="gsQureyAbnermal" value="${view.gsQureyAbnermal}" class="action-valid-field"
                           data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="工商查询是否异常不能为空！"/>
                           <span class="action-field-error" for="gsQureyAbnermal" style="color:red;"></span>
                        </td>

                        <td width="15%" align="right" class="bg">员工人数/人：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="employeeNum" value="${view.employeeNum}" size="10" name="employeeNum" class="action-valid-field" data-action-valid-rule="required;maxlength:10;number;reg:^[1-9]\d*$;" data-action-valid-msg-required="员工人数不能为空！"  autocomplete="off" /> 人
                            <span class="action-field-error" for="employeeNum" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">股东人数/人：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="shareholders" value="${view.shareholders}" size="10" name="shareholders" class="action-valid-field" data-action-valid-rule="required;maxlength:10;number;reg:^[1-9]\d*$;" data-action-valid-msg-required="股东人数不能为空！"  autocomplete="off" /> 人
                            <span class="action-field-error" for="shareholders" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">实际控制人姓名：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="controllername" value="${view.controllername}" size="30" name="controllername"  class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="实际控制人姓名不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="controllername" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店类型 ：<font color="red">*</font></td>
                        <td>
                            <@select dataSouceType="shoptype" dataSouceFrom="CRM"  name="shoptype"  id="shoptype" value="${view.shoptype}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="门店类型不能为空！"/>
                            <span class="action-field-error" for="shoptype" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">经营者与控制人是否同一人：<font color="red">*</font></td>
                        <td>
                            <@select dataSouceType="iscontroller" dataSouceFrom="CRM"  name="iscontroller"  value="${view.iscontroller}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="经营者与控制人是否同一人不能为空！"/>
                            <span class="action-field-error" for="iscontroller" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">营业面积/平方米：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="businessarea" value="${view.businessarea}" size="30" name="businessarea"  class="action-valid-field" data-action-valid-rule="required;maxlength:10;reg:^\d+(.\d{1,2})?$;" data-action-valid-msg-required="营业面积不能为空！"  autocomplete="off" /> 平方米
                            <span class="action-field-error" for="businessarea" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">营业时间：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="businesshours" placeholder="9:00-20:00" value="${view.businesshours}" size="30" name="businesshours" class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="营业时间不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="businessarea" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店租金：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="shoprent" value="${view.shoprent}" size="30" name="shoprent" class="action-valid-field" data-action-valid-rule="required;maxlength:12;reg:^\d+(.\d{1,2})?$;" data-action-valid-msg-required="门店租金不能为空！"  autocomplete="off" /> 元/月
                            <span class="action-field-error" for="shoprent" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">水电费：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="utilitybills" value="${view.utilitybills}" size="30" name="utilitybills" class="action-valid-field" data-action-valid-rule="required;maxlength:12;reg:^\d+(.\d{1,2})?$;" data-action-valid-msg-required="水电费不能为空！"  autocomplete="off" /> 元/月
                            <span class="action-field-error" for="utilitybills" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">固定工资支出：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="fixedsalary" value="${view.fixedsalary}" size="30" name="fixedsalary" class="action-valid-field" data-action-valid-rule="required;maxlength:12;reg:^\d+(.\d{1,2})?$;" data-action-valid-msg-required="固定工资支出不能为空！"  autocomplete="off" /> 元/月
                            <span class="action-field-error" for="fixedsalary" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">行业类别：<font color="red">*</font></td>
                        <td>
                        <@select dataSouceType="vocation" name="vocation"  value="${view.vocation}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="行业行业类别不能为空！" />
                            <span class="action-field-error" for="vocation" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">主要经营产品：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="mainproducts" value="${view.mainproducts}" size="50" name="mainproducts" class="action-valid-field" data-action-valid-rule="required;maxlength:100;" data-action-valid-msg-required="主要经营产品不能为空！"  autocomplete="off"  />
                            <span class="action-field-error" for="mainproducts" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">门店存货情况(金额)：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="shoptock" value="${view.shoptock}" size="30" name="shoptock" class="action-valid-field" data-action-valid-rule="required;" data-action-valid-msg-required="门店存货情况不能为空！"  autocomplete="off" /> 元
                            <span class="action-field-error" for="shoptock" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">毛利率：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="grossProfitRate" value="${view.grossProfitRate}" size="30" name="grossProfitRate" class="action-valid-field" data-action-valid-rule="required;maxlength:12;reg:^\d+(.\d{1,2})?$;" data-action-valid-msg-required="毛利率不能为空！"  autocomplete="off" /> %
                            <span class="action-field-error" for="grossProfitRate" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">年净利润：<font color="red">*</font></td>
                        <td>
                            <input type="text"  id="annualNetProfit" value="${view.annualNetProfit}" size="30" name="annualNetProfit" class="action-valid-field" data-action-valid-rule="required;maxlength:12;reg:^\d+(.\d{1,2})?$;" data-action-valid-msg-required="年净利润不能为空！"  autocomplete="off" /> 元
                            <span class="action-field-error" for="annualNetProfit" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">组织形式:<font color="red">*</font></td>
                        <td colspan="3">
                            <input type="text"  id="organizationForm" value="${view.organizationForm}" size="100" name="organizationForm" class="action-valid-field" data-action-valid-rule="required;maxlength:100;" data-action-valid-msg-required="组织形式不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="organizationForm" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">营业执照注册号:<font color="red">*</font></td>
                        <td colspan="3">
                            <input type="text"  id="blrNumber" value="${view.blrNumber}" size="100" name="blrNumber" class="action-valid-field" data-action-valid-rule="required;maxlength:100;" data-action-valid-msg-required="营业执照注册号不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="blrNumber" style="color:red;"></span>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="bg">应收情况(类别，金额，期限)： <font color="red">*</font></td>
                        <td  colspan='3'>
                            <input type="text"  id="receivable" value="${view.receivable}" size="100" name="receivable" class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="应收情况不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="receivable" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="bg">应付情况(类别，金额，期限)：<font color="red">*</font> </td>
                        <td  colspan='3' >
                            <input type="text"  id="payables" value="${view.payables}" size="100" name="payables" class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="应付情况不能为空！"  autocomplete="off"  />
                            <span class="action-field-error" for="payables" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="bg">合作开始时间：<font color="red">*</font> </td>
                        <td >
                        <@date value="${view.eacooperationdate}" id="eacooperationdate" name="eacooperationdate" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="与怡亚通合作开始时间不能为空！" />
                            <span class="action-field-error" for="eacooperationdate" style="color:red;"></span>
                        </td>
                        <td align="right" class="bg">营业执照名称：<font color="red">*</font> </td>
                        <td >
                            <input  type="text" id="licenceName" value="${view.licenceName}"  size="50" name="licenceName" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="营业执照名称不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="licenceName" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="bg">月均采购额(以近6个月金额为标准)(元)：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="eapurchaseamount" value="${view.eapurchaseamount}" size="15" name="eapurchaseamount" class="action-valid-field" data-action-valid-rule="required;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-required="向怡亚通月均采购额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />  元
                            <span class="action-field-error" for="eapurchaseamount" style="color:red;"></span>
                        </td>

                        <td align="right" class="bg">营业执照地址：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="licenceAddress" value="${view.licenceAddress}"  size="50" name="licenceAddress" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="营业执照地址不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="licenceAddress" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr id="all_amount">
                        <td align="right" class="bg">所有门店年销售额：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="operatorname" value="${view.totalAmount}" size="15" name="totalAmount" class="action-valid-field" data-action-valid-rule="required;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-required="所有门店年销售额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />  元
                            <span class="action-field-error" for="totalAmount" style="color:red;"></span>
                        </td>
                    </tr><#--
                    <tr>
                        <td align="right" class="bg">是否已经获取采购数据：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="isgetdata" value="${view.isgetdata}" size="15" name="isgetdata" class="action-valid-field" data-action-valid-rule="required;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-required="向怡亚通月均采购额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />  元
                            <span class="action-field-error" for="isgetdata" style="color:red;"></span>
                        </td>

                        <td align="right" class="bg">经营者姓名：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="licenceAddress" value="${view.operatorname}"  size="50" name="operatorname" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="营业执照地址不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="licenceAddress" style="color:red;"></span>
                        </td>
                    </tr>-->
                    <tr>
                        <td align="right" class="bg">门店存货金额：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="eapurchaseamount" value="${view.storeinvamount}" size="15" name="storeinvamount" class="action-valid-field" data-action-valid-rule="required;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-required="向怡亚通月均采购额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />  元
                            <span class="action-field-error" for="storeinvamount" style="color:red;"></span>
                        </td>

                        <#--<td align="right" class="bg">门店编码：<font color="red">*</font> </td>
                        <td>
                            <input type="text"  id="operatorname" value="${view.shopcode}" size="15" name="shopcode" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="所有门店年销售额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />
                            <span class="action-field-error" for="shopcode" style="color:red;"></span>
                        </td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="detaiTab">
                <h3>前三位供应商情况：  </h3>
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                    <tr>
                        <td width="15%"  align="right" class="bg">名称： </td>
                        <td width="23%"><input type="text"   id="suppliername1" value="${view.suppliername1}" size="20" name="suppliername1"> </td>
                        <td width="15%"  align="right" class="bg">合作时间： </td>
                        <td width="15%"> <@date value="${view.suppliercooperationdate1}" id="suppliercooperationdate1" name="suppliercooperationdate1"/> </td>
                        <td width="15%"  align="right" class="bg">月均合作金额： </td>
                        <td><input type="text"  class="action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="月均合作金额只能为数字" id="monthamount1" value="${view.monthamount1}" size="15" name="monthamount1" autocomplete="off" /> 元
                            <span class="action-field-error" for="monthamount1" style="color:red"></span>
                        </td>

                    </tr>
                    <tr>
                        <td align="right" class="bg">名称： </td>
                        <td><input type="text"  id="suppliername2" value="${view.suppliername2}" size="20" name="suppliername2"> </td>
                        <td align="right" class="bg">合作时间： </td>
                        <td> <@date value="${view.suppliercooperationdate2}" id="suppliercooperationdate2" name="suppliercooperationdate2" /> </td>
                        <td align="right" class="bg">月均合作金额： </td>
                        <td><input type="text"  class="action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="月均合作金额只能为数字" id="monthamount2" value="${view.monthamount2}" size="15" name="monthamount2"> 元
                            <span class="action-field-error" for="monthamount2" style="color:red"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%"  align="right" class="bg">名称： </td>
                        <td><input type="text"  id="suppliername3" value="${view.suppliername3}" size="20" name="suppliername3"> </td>
                        <td align="right" class="bg">合作时间： </td>
                        <td> <@date value="${view.suppliercooperationdate3}" id="suppliercooperationdate3" name="suppliercooperationdate3"/> </td>
                        <td align="right" class="bg">月均合作金额： </td>
                        <td><input type="text" class="action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="月均合作金额只能为数字" id="monthamount3" value="${view.monthamount3}" size="15" name="monthamount3"> 元
                            <span class="action-field-error" for="monthamount3" style="color:red"></span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="detaiTab">
                <h3>近六个月营业额情况：  </h3>
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tbody>

                    <tr>
                        <td width="15%"  align="right" class="bg">第一个月： </td>
                        <td width="23%"><input type="text"  class="tabInp w50 action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="金额只能为数字" id="turnover1th" value="${view.turnover1th}" size="20" name="turnover1th">  元
                            <span class="action-field-error" for="turnover1th" style="color:red"></span>
                        </td>
                        <td width="15%"  align="right" class="bg">第二个月： </td>
                        <td width="15%"><input type="text"  class="tabInp w50 action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="金额只能为数字" id="turnover2th" value="${view.turnover2th}" size="20" name="turnover2th"> 元
                            <span class="action-field-error" for="turnover2th" style="color:red"></span>
                        </td>
                        <td width="15%"  align="right" class="bg">第三个月： </td>
                        <td><input type="text" class="tabInp w50 action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="金额只能为数字" id="turnover3th" value="${view.turnover3th}" size="20" name="turnover3th"> 元
                            <span class="action-field-error" for="turnover3th" style="color:red"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%"  align="right" class="bg">第四个月： </td>
                        <td><input type="text"  class="tabInp w50 action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="金额只能为数字" id="turnover4th" value="${view.turnover4th}" size="20" name="turnover4th">  元
                            <span class="action-field-error" for="turnover4th" style="color:red"></span>
                        </td>
                        <td width="15%"  align="right" class="bg">第五个月： </td>
                        <td><input type="text"  class="tabInp w50 action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="金额只能为数字" id="turnover5th" value="${view.turnover5th}" size="20" name="turnover5th"> 元
                            <span class="action-field-error" for="turnover5th" style="color:red"></span>
                        </td>
                        <td width="15%"  align="right" class="bg">第六个月： </td>
                        <td><input type="text" class="tabInp w50 action-valid-field" data-action-valid-rule="number;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-number="金额只能为数字"  id="turnover6th" value="${view.turnover6th}" size="20" name="turnover6th"> 元
                            <span class="action-field-error" for="turnover6th" style="color:red"></span>
                        </td>
                    </tr>
                    <tr>
                        <td  align="left" class="bg">门店名下（非实际控制人）的资产负债情况： </td>
                        <td colspan="5"><input type="text"  id="assetsliabilities" value="${view.assetsliabilities}" size="20" name="assetsliabilities"> </td>

                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="clearfix tac mtb20">
                <input type="submit" class="btn_auto_30 btn_blue" value="提交">&nbsp;
                <!--<a class="btn_auto_30 btn_blue ml20" href="/customer/getCustomerDetailInfo?op_type=show&customer_id=${vo.customer_id}" target="_self">返回</a>-->
            </div>
        </form>

    <@js>


	$(function() {
	
	$.ajaxSetup ({     
		cache: false 
	});
		var loanType = $('#loanType').val();
			var sdurl = '/oaoro2odatasub/jsonword';
		if(loanType=='BP'||loanType=='BP_JX'||loanType=='SG'||loanType=='YC'||loanType=='SC'){
			var sdurl = '/oaoro2odatasub/jsonwordNew';
		}
		$('#shopnameRead').combogrid({
				loadMsg:'数据加载中,请稍后...',
				panelWidth: 500,
				idField: 'cno',
				textField: 'cname',
				url: sdurl,
				method: 'get',
				 rownumbers:true,//序号   
		      collapsible:false,//是否可折叠的   
				columns: [[
					{field:'cno',title:'流水号',width:80},
					{field:'ccode',title:'客户sd号',width:120},
					{field:'cname',title:'客户名简称',width:150},
					{field:'cnames',title:'客户全称',width:150}
				]],
				fitColumns: true,
				delay: 1100,
				keyHandler: {
					up: function() {
					},
					down: function() {
					},
					enter: function() {
					},
					query: function(q) {
						if(loanType=='BK'){
							$('#shopnameRead').combogrid("grid").datagrid("reload", { 'reloadname': q });
								$('#shopnameRead').combogrid("setValue", q);
						}else{
							if(q||q.length>3){
								$('#shopnameRead').combogrid("grid").datagrid("reload", { 'reloadname': q });
								$('#shopnameRead').combogrid("setValue", q);
								item=true;
							}
						}
					}
				 },
				 onClickRow:function(rowIndex, rowData){
					$("#shopname").val(rowData.cname);
					$("#shopno").val(rowData.cno);
					$("#shopcode").val(rowData.ccode);
				},
				onLoadSuccess:function(){
				}
			});
		})

        var init = function(){
            //office address init
            $("#select_cityId").empty();
            $("#select_cityId").append("<option value=''>请选择</option>");

            $("#select_districtId").empty();
            $("#select_districtId").append("<option value=''>请选择</option>");

            //shop address init
            $("#select_shop_cityId").empty();
            $("#select_shop_cityId").append("<option value=''>请选择</option>");

            $("#select_shop_districtId").empty();
            $("#select_shop_districtId").append("<option value=''>请选择</option>");
        };
        init();

        function provinceOnchange(){
        var provinceCode = $("#select_provinceId").val();
        var url="<@url value='/common/findCityByProvinceCode' domain='${crmUrl}'/>";
        $.ajax({
        type: "GET",
        url:url,
        data:{provinceCode:provinceCode},
        dataType:"jsonp",
        jsonp:"_callback",
        success:function(result){
        $("#select_cityId").empty();
        $("#select_cityId").append("<option value=''>请选择</option>");

        $("#select_districtId").empty();
        $("#select_districtId").append("<option value=''>请选择</option>");


        $.each(result.data,function(key,value){
        $("#select_cityId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");
        });
        }
        });
        }


        function cityOnchange(){
        var cityCode = $("#select_cityId").val();
        var url="<@url value='/common/findDistrictByCityCode' domain='${crmUrl}'/>";
        $.ajax({
        type: "GET",
        url:url,
        data:{cityCode:cityCode},
        dataType:"jsonp",
        jsonp:"_callback",
        success:function(result){
        $("#select_districtId").empty();
        $("#select_districtId").append("<option value=''>请选择</option>");


        $.each(result.data,function(key,value){
        $("#select_districtId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");
        });
        }
        });
        }

        function shopprovinceOnchange(){
        var provinceCode = $("#select_shop_provinceId").val();
        var url="<@url value='/common/findCityByProvinceCode' domain='${crmUrl}'/>";
        $.ajax({
        type: "GET",
        url:url,
        data:{provinceCode:provinceCode},
        dataType:"jsonp",
        jsonp:"_callback",
        success:function(result){
        $("#select_shop_cityId").empty();
        $("#select_shop_cityId").append("<option value=''>请选择</option>");

        $("#select_shop_districtId").empty();
        $("#select_shop_districtId").append("<option value=''>请选择</option>");


        $.each(result.data,function(key,value){
        $("#select_shop_cityId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");
        });
        }
        });
        }


        function shopcityOnchange(){
        var cityCode = $("#select_shop_cityId").val();
        var url="<@url value='/common/findDistrictByCityCode' domain='${crmUrl}'/>";
        $.ajax({
        type: "GET",
        url:url,
        data:{cityCode:cityCode},
        dataType:"jsonp",
        jsonp:"_callback",
        success:function(result){
        $("#select_shop_districtId").empty();
        $("#select_shop_districtId").append("<option value=''>请选择</option>");
        $.each(result.data,function(key,value){
        $("#select_shop_districtId").append("<option value='"+value[0]+"'>"+value[1]+"</option>");
        });
        }
        });
        }

        $(function(){
        //1.配偶情况

        var shoptype=$("#shoptype").val();

        if(shoptype == 'MAN' ){
        $('#all_amount').show();
        $("input[name='totalAmount']").attr('data-action-valid-rule','required;');
        }else{
        $('#all_amount').hide();
        $("input[name='totalAmount']").removeAttr('data-action-valid-rule');
        }
        });

        $("#shoptype").change(function(){
        var shoptype=$("#shoptype").val();
        if(shoptype == 'MAN' ){
        $('#all_amount').show();
        $("input[name='totalAmount']").attr('data-action-valid-rule','required;');
        }else{
        $('#all_amount').hide();
        $("input[name='totalAmount']").removeAttr('data-action-valid-rule');
        }
        });
    </@js>
    <@jsRender/>
    </div>

    <div>
	

	
 
		
